home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / trial / demon / TURNPIKE.1 / CLASSES.ZIP / JAVA / AWT / Insets.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-04-14  |  964 b   |  28 lines

  1. package java.awt;
  2.  
  3. public class Insets implements Cloneable {
  4.    public int top;
  5.    public int left;
  6.    public int bottom;
  7.    public int right;
  8.  
  9.    public Insets(int var1, int var2, int var3, int var4) {
  10.       this.top = var1;
  11.       this.left = var2;
  12.       this.bottom = var3;
  13.       this.right = var4;
  14.    }
  15.  
  16.    public String toString() {
  17.       return this.getClass().getName() + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]";
  18.    }
  19.  
  20.    public Object clone() {
  21.       try {
  22.          return super.clone();
  23.       } catch (CloneNotSupportedException var1) {
  24.          throw new InternalError();
  25.       }
  26.    }
  27. }
  28.